# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=asteroid
pkgname=asteroid-alarmclock
pkgver=2.0.0
pkgrel=0
pkgdesc="Default alarm clock app for AsteroidOS"
url="https://github.com/AsteroidOS/asteroid-alarmclock"
# armhf blocked by qml-asteroid
arch="all !armhf"
license="GPL-3.0-or-later"
depends="
	libngf-qt
	mapplauncherd
	nemo-qml-plugin-alarms
	nemo-qml-plugin-configuration
	nemo-qml-plugin-time
	"
makedepends="
	extra-cmake-modules
	qml-asteroid-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	samurai
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/AsteroidOS/asteroid-alarmclock/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DSYSTEMD=OFF
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
fff0ea11474e857dc4dd875c33e65661f79c2a6af2a6094965dc32ce343919e6baeba9e4d235f3592ef4036f34d1005da0f6f99e75d4eba6617a1f48e9d4253b  asteroid-alarmclock-2.0.0.tar.gz
"
